package com.aq.appserver.server.account.dao;

import java.util.Date;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import com.aq.appserver.server.account.entity.Feather;

public interface FeatherDao extends CrudRepository<Feather, Long> {

	Feather findByPhoneNum(String phoneNum);

	@Modifying
	@Query("update Feather s set s.count = ?2, s.updateTime = ?3 where s.phoneNum = ?1")
	void updateFeather(String phoneNum, int count, Date date);
}
